package com.vrv.fixedlength;

import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

import com.vrv.domain.Student;

/**
 * desc:
 * @author lsr lishaorui@vrvmail.com.cn
 * @version 2014-1-2
 */
@Component("fixedLengthFileProcessor")
public class FixedLengthFileProcessor implements ItemProcessor<Student, Student>{

    @Override
    public Student process(Student student) throws Exception {
        student.setName(student.getId() + "--" + student.getName());
        student.setAge(student.getAge() + 2);
        student.setScore(student.getScore() + 10);
        
        return student;
    }

}
